# -*- coding: utf-8 -*-
# @Time : 2019/1/11 9:27
# @Author : Administrator
# @File : employment.py
# @Project : python
# @title : 接口测试 -- 解密
import ddt
import unittest
from woniuboss_interface.common.login_decode import Login

ses,host,excel_path = Login()
@ddt.ddt
class decode(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        print("测试开始")

    @classmethod
    def tearDownClass(cls):
        print("测试结束")

    def test_003_decode(self):   #解密功能
        res = ses.post(url=host+"/second?vp=woniu123",
                      data={"vp":"woniu123"})
        # print(res.text)
        self.assertEqual("yes",res.text)  #断言

if __name__ == '__main__':
    unittest.main()